home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / mkrsc.arc / MKRSC.DOC next >
Text File  |  1990-04-30  |  19KB  |  328 lines

  1.  
  2.             MKRSC   Documentation
  3.  
  4.                       J. Charlton
  5.            30 Prescot Rd, Winnipeg, Manitoba
  6.             Canada   R3T 3X5
  7.                Tel (204) 261-7267
  8.              E-mail  charltn@ccu.umantioba.ca
  9.     
  10.     MKRSC copyright Jim Charlton 1989.  MKRSC is freely distributable
  11. provided that this file is distributed with the source and executable
  12. code.  No-one may charge a fee for the executable or source code, nor for
  13. distribution of this code.
  14.  
  15.     Version 1.0 is the first release of this program and all reports of 
  16. problems, bugs or suggestions for improvements should be forwarded to the
  17. address given above.
  18.  
  19.     No guarantees, written or implied are made as to the suitability of
  20. this program for any particular purpose.  Anyone who uses it, does so at
  21. their own risk.
  22.  
  23. This documentation is NOT a manual for GEM programming using a Resource
  24. Construction Program (RCP).  It is a description of how to use MKRSC
  25. to create resource files to use in GEM programming.
  26.  
  27. MKRSC is a simple GEM resource construction program (RCP) suitable for the
  28. creation of dialog boxes and menus.  The purpose in writing this program
  29. was to provide a utility for those interested in GEM programming on the
  30. Atari ST/MEGA computers, but not having access to a commercial resource
  31. builder.  Version 1.0 of the program has no facility for the creation of
  32. icons or bit mapped images.  Neither is the program useful for editing
  33. existing resource files, even those containing only dialog boxes and menus.
  34. It is only useful for the creation of new resource files and their
  35. associated C header files.  The program should work in either monochrome
  36. or colour although it has been more extensively tested on monochrome systems.
  37.  
  38. MKRSC was written using the Laser C compiler sold by Megamax Inc.
  39. Laser C is an excellent commercial C compiler for the Atari ST/MEGA and
  40. I recommend it to anyone contemplating buying a C compiler.  It comes
  41. with a very good RCP and an optional debugger (that is absolutely
  42. essential, if you are doing any serious programming).  I am able to
  43. develop relatively large applications using only a 1040ST with a single
  44. double-sided drive.  I have no connection whatsoever with Megamax other
  45. than as a satisfied customer.
  46.  
  47. The source code has also been modified by Jwahar Bammi to allow compilation
  48. with the gcc compiler.  A separate Makefile (Makefile.gcc) as well as an
  49. additional gcc support file (gnu.c) are included in the sources.
  50.  
  51. MKRSC was written without the benefit of any documentation other than what
  52. could be gleaned from the Laser C manual.  There are many strange things
  53. about resource files that I do not understand at all, some of which I mention
  54. as part of the documentation in the source code.  I would be very glad
  55. to hear about any problems encountered while using the program.  I will
  56. try to fix bugs and post new versions in a timely manner.
  57.  
  58. How to use the program should be fairly obvious but I will try to generally
  59. explain the items on the menu bar.
  60.  
  61. NEW- This starts the creation of a new resource by opening up a window
  62. on the right side of the screen.  You can open up as many as seven of these
  63. windows after which you should get a message saying that no more windows are
  64. available.  Each window will have a different title which will change when
  65. you save the resource.  You can rotate through the open windows by using
  66. the 'rotate windows' command at the right end of the menu bar.
  67.  
  68. Having opened a window you may now drag the icons from the left hand side
  69. of the screen to the right hand window.  You do this clicking on an icon
  70. (left button, hold down) and dragging it into the window.  Anywhere in the
  71. window is fine.  A namer dialog will pop up that will enable you to change
  72. the name of this 'resource tree' (You can rename it later if you choose to
  73. accept the default name by clicking on OK).  You should only drag either
  74. dialog or menu icons into the window.  Do not use the 'unknown' icon.  If
  75. you do, it will be treated exactly as a dialog icon.
  76.  
  77. Once you have one or more icons in the right hand window you can 'open' a
  78. resource tree by double clicking on one of the icons.  Try a dialog box
  79. first.  A dialog box opens with a simple outlined box in the window on the
  80. right.  Note that the icons on the left hand side of the screen change as
  81. you open the dialog box.  You may now 'drag' objects from the left hand side
  82. of the screen into the window on the right.  They will be positioned at the
  83. place you release the mouse.  You may reposition them by clicking on them
  84. and dragging them to a new position.  NOTE.. If you drag an object or even
  85. do a sustained click on an object, it will make it the top object in its
  86. list of siblings.  This means that if you have overlapping objects, the one
  87. that is top will be drawn on top.  By sequentially doing a sustained click
  88. on a list of siblings (objects at the same level.. all having the same parent),
  89. you can 'order' the list.  You can also 'order' or sort the list by using
  90. the 'SORT' function (see below).  All objects can also be resized by
  91. clicking near their lower right corner and dragging the corner to make a
  92. new size.  Simply single clicking an object will cause it to be 'selected'
  93. which will be useful for things to be described later.  If you double click
  94. an object, a dialog box will open which will allow you to change the
  95. characteristics of of the object.
  96.   NOTE...  If you hold down the control key while clicking, dragging or
  97. resizing an object, you will select the 'parent' of the top object
  98. (usually the object under the top object).  If you hold down the left-shift
  99. key while doing a sustained click on an object, a copy of the object will
  100. be copied to the cut buffer.  The cursor will change to a pointing finger
  101. and you can now paste a copy of the object by just clicking somewhere 
  102. else.  You can copy objects within a dialog or whole trees at the resource
  103. level.
  104.  
  105. SNAP-  Objects can be placed at any position and sized to any size if
  106. snapping is turned off by clicking on SNAP (it can be turned back
  107. on by clicking SNAP again).  If SNAP is on (the default) then object
  108. positions and sizes will be snapped to the nearest character boundary/size.
  109. Making 'unsnapped' resources may cause objects to be positioned
  110. slightly differently at different resolutions.  You can also snap all
  111. objects in the current dialog box (Snap all) or snap a selected object
  112. (Snap selected).  Menu resources are always 'snapped'.
  113.  
  114. If you are working on a monochrome system, remember that only colors
  115. 0 and 1 have any significance.  Many of the object characteristics
  116. affect their use in GEM programs and their use may not be obvious to
  117. you until you become familiar with GEM.
  118.  
  119. Once you have put the objects that you desire into a dialog box you can close
  120. the tree by clicking on the close box of the window (upper left) or by
  121. selecting 'close' from the menu bar.  This will return you to the 'resource'
  122. level from the single 'tree' level.  Now try dragging in and double clicking
  123. a menu icon.  On double clicking the menu icon a menu bar opens up.  It
  124. begins with a minimum set of items on the bar.  While you can edit the titles
  125. and strings on the menu bar you should never 'erase' the 'desk' or 'file'
  126. title.  You can examine the drop down menus under each title by 'selecting'
  127. (single clicking) a title.  The drop down menu box and the entries in the
  128. boxes can be resized by dragging their lower right corner.  You will have
  129. to first reduce the size of the last menu box entry before you can get
  130. access to the menubox itself for resizing, or use control/click to access
  131. the menu box under the entry.  You can only resize menuboxes,
  132. not reposition them.  Titles can be resized and even repositioned.  Their
  133. corresponding menuboxes (with contents) will be repositioned automatically.
  134. Tiles on the menu bar will always be end to end, left justified so that
  135. repositioning will only change their order.  New tiles can be dragged only to
  136. the title region of the menu bar.  A new menubox is automatically created
  137. when you insert a new title.  New entries to a menubox can be dragged to an
  138. open menu box.  T